package homework;

public class Hero {
	String name;
	String name2;
	String name3;
	int healthPoint;
	int healthPoint2;
	String ATK;
	int form;

	public void showHero() {

		System.out.println("英雄类:" + "\n" + "我是英雄，我的基本信息如下:" + "\n" + "名字:" + name + ",生命值:" + healthPoint);

		System.out.println("-----------------------------------------------------------------------------------");
		System.out.println("武器类:" + "\n" + "我是武器，我的基本信息如下:" + "\n" + "名字:" + name2 + ",攻击力:" + form);
		System.out.println("-----------------------------------------------------------------------------------");
		System.out.println(
				"怪物类:" + "\n" + "我是怪物，我的基本信息如下:" + "\n" + "名字:" + name3 + ",生命值:" + healthPoint2 + ",类型:" + ATK);

	}

	public static void main(String[] args) {

		Hero hero = new Hero();
		hero.name = "李小侠";
		hero.name2 = "小龟";
		hero.name3 = "死神镰刀";
		hero.healthPoint = 800;
		hero.healthPoint2 = 300;
		hero.form = 100;
		hero.ATK = "潜水型";
		hero.showHero();
	}

}
